//
//  GZConst.h
//  Gunz
//
//  Created by Joggy on 16/1/18.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define screenWidth [GZConst getScreenWidth]
#define screenHeight [GZConst getScreenHeight]
#define proportion [GZConst getScreenProportion]
#define font8 8
#define font10 10
#define font11 11
#define font12 12
#define font13 13
#define font14 14
#define font15 15
#define font16 16
#define font17 17
#define font18 18
#define font20 20

#define BGGREEN [UIColor colorWithRed:0.3 green:0.69 blue:0.51 alpha:1]
#define TEXT_BORDER_COLOR [UIColor colorWithRed:0.84 green:0.84 blue:0.84 alpha:1]
#define TEXT_TITLE_COLOR [UIColor colorWithRed:0.298 green:0.345 blue:0.4235 alpha:1]
#define TEXT_DETAIL_COLOR [UIColor colorWithRed:0.53 green:0.53 blue:0.53 alpha:1]
#define CUSTOM_GREEN [UIColor colorWithRed:0.29 green:0.686 blue:0.494 alpha:1]
#define CUSTOM_BACKGROUND [UIColor colorWithRed:0.94 green:0.94 blue:0.96 alpha:1]

#define mainTestListPath [basePath stringByAppendingString:@"/mainTestList.txt"]
#define se ttingListPath [basePath stringByAppendingString:@"/settingList.txt"]
#define completedTestPath [basePath stringByAppendingString:@"/completedTestList.txt"]
#define executingTestPath [basePath stringByAppendingString:@"/executingTestList.txt"]
#define registeredTestPath [basePath stringByAppendingString:@"/registeredTestList.txt"]
#define releasedTestPath [basePath stringByAppendingString:@"/releasedTestList.txt"]

@interface GZConst : NSObject

typedef void (^block)();

+(CGFloat)getScreenWidth;
+(CGFloat)getScreenHeight;
+(CGFloat)getScreenProportion;      //获取以5s为基准的宽高比例
+(BOOL)isFileExist:(NSString*)path;
//+(void)delay:(double)time with:(block)event;
+(void)delay:(double)time with:(void(^)(void))event;
+(NSString*)getCurrentDateFormate;

+(NSArray*)defaultData;
+(NSArray*)defaultExcutingData;
+(NSDictionary*)defaultUploadData;
+(NSArray*)getDataPathList;

//- (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ __nullable)(void))completion NS_AVAILABLE_IOS(5_0);


@end








